﻿using Hidistro.UI.Common.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;

namespace Hidistro.UI.SaleSystem.Tags
{
    public class wnxd_ShoppingCart_ProductList : AscxTemplatedWebControl
    {
        Repeater PList;
        protected override void AttachChildControls()
        {
            this.PList = (Repeater)this.FindControl("PList");
        }
        protected override void OnInit(EventArgs e)
        {
            if (this.SkinName == null)
            {
                this.SkinName = "/ascx/tags/Common_ShoppingCart/wnxd_ShoppingCart_ProductList.ascx";
            }
            base.OnInit(e);
        }
        public object DataSource
        {
            get
            {
                return this.PList.DataSource;
            }
            set
            {
                this.EnsureChildControls();
                this.PList.DataSource = value;
            }
        }
        public override void DataBind()
        {
            this.EnsureChildControls();
            if (this.PList.DataSource != null)
            {
                this.PList.DataBind();
            }
        }
        public override string ID
        {
            get
            {
                return base.ID;
            }
            set
            {
                base.ID = value;
            }
        }
    }
}
